package com.gzhu.knowledgeAdmin.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gzhu.knowledgeAdmin.dao.GlobalSettingMapper;
import com.gzhu.knowledgeAdmin.entity.TQjszT;
import com.gzhu.knowledgeAdmin.service.GlobalSettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class GlobalSettingServiceImpl extends ServiceImpl<GlobalSettingMapper, TQjszT> implements GlobalSettingService {
    @Resource
    private GlobalSettingMapper globalSettingMapper;


    @Override
    public Integer countByGsid(String fGsid) { return globalSettingMapper.countByGsid(fGsid); }

    @Override
    public Integer insertGlobalSetting(TQjszT tQjszT) {


        return globalSettingMapper.insertGlobalSetting(tQjszT);
    }

    @Override
    public Integer updateGlobalSetting(TQjszT tQjszT) {
        return globalSettingMapper.updateGlobalSetting(tQjszT);
    }

    @Override
    public TQjszT findByGsid(String fGsid) {
        return globalSettingMapper.getAllByGsid(fGsid);
    }
}
